<template>
  <div class="index">
    <div>
      <el-button type="primary" @click="onLogin">登录</el-button>
    </div>
    <!-- <div class="b2">
      <el-button type="info" @click="onClear">取消</el-button>
    </div> -->

  </div>
</template>

<script>
export default {
  name: '',
  data() {
    return {

    };
  },
  created() {

  },
  mounted() {

  },
  methods: {
    onLogin() {  //调用登录接口
      console.log('确认登录');
      // window.close();
      // window.location.href="about:blank";
      // window.close();

    },
    onClear() {
      console.log('取消');
    }
  },
}
</script>
<style scoped lang="scss">
.index {
  height: 100vh;
  text-align: center;
  padding-top: 150px;

  button {
    width: 50%;
  }

  .b2 {
    margin-top: 25px;
  }
}
</style>